const Router = require('vue-router');

export default new Router({
	mode: 'hash',
	linkActiveClass: 'on',
	routes: [{
			path: '/',
			component: () =>
			import('@/components/Index'),
			children: [{
					path: '',
					name: 'Home',
					component: () =>
						import('@/components/Home'),
					meta: {
						title: '资产',
						requiresAuth: true
					}
				},
				{
					path: '/Mine',
					name: 'Mine',
					component: () =>
						import('@/components/Mine'),
					meta: {
						title: '我的',
						requiresAuth: true
					}
				}
			]
		}, {
			path: '/Login',
			name: 'Login',
			component: () =>
				import('@/components/Login'),
			meta: {
				title: '登录'
			}
		},
		{
			path: '/findPass',
			name: 'findPass',
			component: () =>
				import('@/components/base/aboutLogin/findPass'),
			meta: {
				title: '找回密码'
			}
		}, {
			path: '/register',
			name: 'register',
			component: () =>
				import('@/components/base/aboutLogin/register'),
			meta: {
				title: '选择钱包'
			}
		}, {
			path: '/Choose',
			name: 'Choose',
			component: () =>
				import('@/components/base/wallet/Choose'),
			meta: {
				title: '选择钱包'
			}
		}, {
			path: '/Found',
			name: 'Found',
			component: () =>
				import('@/components/base/wallet/Found'),
			meta: {
				title: '创建钱包'
			}
		}, {
			path: '/Import',
			name: 'Import',
			component: () =>
				import('@/components/base/wallet/Import'),
			meta: {
				title: '导入钱包'
			}
		}, {
			path: '/MnemonicWord',
			name: 'MnemonicWord',
			component: () =>
				import('@/components/base/wallet/MnemonicWord'),
			meta: {
				title: '什么是助记词？'
			}
		}, {
			path: '/BackupHints',
			name: 'BackupHints',
			component: () =>
				import('@/components/base/backups/BackupHints'),
			meta: {
				title: '备份提示'
			}
		}, {
			path: '/BackupMnemonic',
			name: 'BackupMnemonic',
			component: () =>
				import('@/components/base/backups/BackupMnemonic'),
			meta: {
				title: '备份助记词'
			}
		},

		{
			path: '/Receivables',
			name: 'Receivables',
			component: () =>
				import('@/components/assets/Receivables'),
			meta: {
				title: '主页收款'
			}
		},

		{
			path: '/Flash',
			name: 'Flash',
			component: () =>
				import('@/components/assets/Flash'),
			meta: {
				title: '闪兑'
			}
		},
		{
			path: '/Accredit',
			name: 'Accredit',
			component: () =>
				import('@/components/assets/Accredit'),
			meta: {
				title: '授权管理'
			}
		},
		{
			path: '/Impower',
			name: 'Impower',
			component: () =>
				import('@/components/assets/Impower'),
			meta: {
				title: '为什么要授权'
			}
		},
		{
			path: '/Bargain',
			name: 'Bargain',
			component: () =>
				import('@/components/assets/Bargain'),
			meta: {
				title: '交易记录'
			}
		},

		{
			path: '/Homepageassets',
			name: 'Homepageassets',
			component: () =>
				import('@/components/assets/Homepageassets'),
			meta: {
				title: '首页资产管理'
			}
		},
		{
			path: '/Backup',
			name: 'Backup',
			component: () =>
				import('@/components/assets/Backup'),
			meta: {
				title: '资产备份提示'
			}
		},

		{
			path: '/Myproperty',
			name: 'Myproperty',
			component: () =>
				import('@/components/assets/Myproperty'),
			meta: {
				title: '我所有的资产'
			}
		},

		{
			path: '/Profie',
			name: 'Profie',
			component: () =>
				import('@/components/assets/Profie'),
			meta: {
				title: '资产详情'
			}
		},

		{
			path: '/Collections',
			name: 'Collections',
			component: () =>
				import('@/components/assets/Collections'),
			meta: {
				title: '收款'
			}
		},

		{
			path: '/Transfer',
			name: 'Transfer',
			component: () =>
				import('@/components/assets/Transfer'),
			meta: {
				title: '转账'
			}
		},

		{
			path: '/Address',
			name: 'Address',
			component: () =>
				import('@/components/assets/Address'),
			meta: {
				title: '地址本'
			}
		},

		{
			path: '/Conversion',
			name: 'Conversion',
			component: () =>
				import('@/components/assets/Conversion'),
			meta: {
				title: 'ETH'
			}
		},

		{
			path: '/addAssets',
			name: 'addAssets',
			component: () =>
				import('@/components/assets/addAssets'),
			meta: {
				title: '添加资产'
			}
		},

		{
			path: '/Search',
			name: 'Search',
			component: () =>
				import('@/components/assets/Search'),
			meta: {
				title: '搜索页'
			}
		},
		{
			path: '/sureMnemonic',
			name: 'sureMnemonic',
			component: () =>
				import('@/components/base/backups/sureMnemonic'),
			meta: {
				title: '确认助记词'
			}
		},
		{
			path: '/addWallet',
			name: 'addWallet',
			component: () =>
				import('@/components/mine/addWallet'),
			meta: {
				title: '添加钱包'
			}
		},
		{
			path: '/About',
			name: 'About',
			component: () =>
				import('@/components/mine/About'),
			meta: {
				title: '关于我们'
			}
		}, {
			path: '/Edition',
			name: 'Edition',
			component: () =>
				import('@/components/mine/Edition'),
			meta: {
				title: '版本日志'
			}
		}, {
			path: '/Agreement',
			name: 'Agreement',
			component: () =>
				import('@/components/mine/Agreement'),
			meta: {
				title: '用户协议'
			}
		}, {
			path: '/Help',
			name: 'Help',
			component: () =>
				import('@/components/mine/Help'),
			meta: {
				title: '帮助中心'
			}
		}, {
			path: '/Setting',
			name: 'Setting',
			component: () =>
				import('@/components/mine/Setting'),
			meta: {
				title: '使用设置'
			}
		}, {
			path: '/NodeSetup',
			name: 'NodeSetup',
			component: () =>
				import('@/components/mine/NodeSetup'),
			meta: {
				title: '节点设置'
			}
		}, {
			path: '/SelectNodeSetup',
			name: 'SelectNodeSetup',
			component: () =>
				import('@/components/mine/SelectNodeSetup'),
			meta: {
				title: '选择节点'
			}
		}, {
			path: '/DAppSetting',
			name: 'DAppSetting',
			component: () =>
				import('@/components/mine/DAppSetting'),
			meta: {
				title: 'DApp 设置'
			}
		}, {
			path: '/Wallet',
			name: 'Wallet',
			component: () =>
				import('@/components/mine/Wallet'),
			meta: {
				title: '钱包管理'
			}
		}, {
			path: '/News',
			name: 'News',
			component: () =>
				import('@/components/mine/News'),
			meta: {
				title: '消息中心'
			}
		}, {
			path: '/MyIdentity',
			name: 'MyIdentity',
			component: () =>
				import('@/components/mine/MyIdentity'),
			meta: {
				title: '我的身份'
			}
		}, {
			path: '/WalletManagement',
			name: 'WalletManagement',
			component: () =>
				import('@/components/assets/WalletManagement'),
			meta: {
				title: '管理'
			}
		}, {
			path: '/WalletDetail',
			name: 'WalletDetail',
			component: () =>
				import('@/components/assets/WalletDetail'),
			meta: {
				title: '钱包详情'
			}
		}, {
			path: '/PasswordInfo',
			name: 'PasswordInfo',
			component: () =>
				import('@/components/assets/PasswordInfo'),
			meta: {
				title: '密码提示信息'
			}
		}, {

			path: '/Keystore',
			name: 'Keystore',
			component: () =>
				import('@/components/assets/Keystore'),
			meta: {
				title: '导出Keystore'
			}
		}
	]
})